package top.xiesen.collection;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestEquals {

	public static void main(String[] args) {
		List list = new ArrayList();
		list.add(new String("aaaa"));
		list.add(new String("aaaa"));
		System.out.println(list.size());
		
		Map map = new HashMap(); 
		// 键不能重复
		map.put(1, "AAAAAAAAAA");
		map.put(1, "BBBBBBBBBB");
		System.out.println(map.get(1));
	}
}
